export const createRule = {
  authorId: {
    type: 'number',
    required: true
  },
  category: {
    type: 'string',
    required: true
  },
  title: {
    type: 'string',
    required: true
  },
  tags: {
    type: 'array',
    required: false
  },
  content: {
    type: 'string',
    required: true
  }
};

export const updateRule = {
  category: {
    type: 'string',
    required: false,
    allowEmpty: false
  },
  title: {
    type: 'string',
    required: false,
    allowEmpty: false
  },
  tags: {
    type: 'array',
    required: false,
    allowEmpty: false
  },
  content: {
    type: 'string',
    required: false,
    allowEmpty: false
  }
};
